package studio.raptor.dispatcher.server.event;

import com.google.common.eventbus.Subscribe;

/**
 * @author jack
 * @since 1.0
 */
public class EventListener {
  public int lastMessage = 0;

  @Subscribe
  public void listen(TestEvent event) {
    lastMessage = event.getMessage();
    System.out.println("Message:"+lastMessage);
  }

  public int getLastMessage() {
    return lastMessage;
  }

}
